package com.yupi.springbootinit.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @Description 计数器
 * @Author minify
 * @Date 2023/11/13 10:35
 * @Project count-backend
 */
@TableName(value = "click_count")
@Data
public class ClickCount {

    @TableId
    private Integer id;

    @TableField("`count`")
    private Integer count;

    @TableField("`update_time`")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

}
